import { createSSRApp } from 'vue'
import App from './App.vue'

import uviewPlus from 'uview-plus'

import store from './store'
import { initPerformanceOptimization } from '@/utils'

export function createApp() {
    const app = createSSRApp(App)
    app.use(uviewPlus)
    app.use(store)

    // 初始化性能优化
    initPerformanceOptimization()

    return { app }
}
